home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gIntroFile, gOnIBM, gNotesDirectoryPath, gSaveItemsDirectoryPath, gMacBiblePath, gMyCD, gOneLevelUpDirectory
- identifyPlatform()
- if gOnIBM then
- set gMyCD to checkDrive("SKYMEDIA.TXT")
- set gIntroFile to gMyCD & "\data\pkintro.dir"
- set gNotesDirectoryPath to the pathName & "NOTES"
- set gSaveItemsDirectoryPath to the pathName & "SAVEFILE"
- else
- set gIntroFile to "Old Testament:data:pkintro.dir"
- set gNotesDirectoryPath to the pathName & "NOTES"
- set gSaveItemsDirectoryPath to the pathName & "SAVEFILE"
- createUpOneLevelPathName()
- set gMacBiblePath to gOneLevelUpDirectory & ":macBible 3.0:macBible ® 3.2.1"
- end if
- end
-
- on checkDrive theFileName
- repeat with i = 67 to 90
- set drive to numToChar(i)
- set thisPath to string(drive & ":\" & theFileName)
- set myFile to FileIO(mnew, "read", thisPath)
- if objectp(myFile) then
- myFile(mdispose)
- return drive & ":"
- exit
- end if
- end repeat
- alert("Please check that" && QUOTE & theFileName & QUOTE & "is on your CD Drive.")
- end
-
- on createUpOneLevelPathName
- global gOneLevelUpDirectory
- set gOneLevelUpDirectory to the pathName
- set the itemDelimiter to ":"
- set totalItems to the number of items in gOneLevelUpDirectory
- repeat with x = 1 to totalItems
- if item x of gOneLevelUpDirectory = "Old Testament" then
- set myLastItem to x
- next repeat
- end if
- nothing()
- end repeat
- delete item myLastItem to totalItems of gOneLevelUpDirectory
- set the itemDelimiter to ","
- end
-